Finding the reaction forces of a pinned beam